package com.xinyi.share.weixin.entity;

import java.util.ArrayList;
import java.util.List;

public class SubMenuButton extends MenuButton {
	public SubMenuButton(String type, String name) {
		super(type, name);
	}
	private List<MenuButton> sub_button = null;
	
	/**
	 * 添加子菜单
	 * @param menuButton
	 */
	public void addChildMenuButton(MenuButton menuButton){
		if(null == this.sub_button)
			this.sub_button = new ArrayList<>();
		this.sub_button.add(menuButton);
	}
	
	public List<MenuButton> getSub_button() {
		return sub_button;
	}
	public void setSub_button(List<MenuButton> sub_button) {
		this.sub_button = sub_button;
	}
}
